package com.web;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.Toast;

public class WebActivity extends Activity implements OnClickListener {
	
	private Context cxt = this;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    	Button btn = (Button)findViewById(R.id.btn);
        WebView webV = (WebView)findViewById(R.id.webV);
        webV.loadUrl("http://www.google.com");
        btn.setOnClickListener(this);
    }

	public void onClick(View v) {
		AlertDialog.Builder alert = new AlertDialog.Builder(this);
			alert.setTitle("DERP A DERP");
			alert.setMessage("MERP A MERP");
			alert.setPositiveButton("HAHA YEAH", new DialogInterface.OnClickListener() {
				public void onClick(DialogInterface dialog, int which) {
					Toast.makeText(cxt, "HOLD UP MORE DOOKIES", Toast.LENGTH_LONG).show();
					
				}
		
			}).setNeutralButton("WHATEVER", new DialogInterface.OnClickListener() {
				
				public void onClick(DialogInterface dialog, int which){
					
				}
			}).setNegativeButton("HELL NAW", new DialogInterface.OnClickListener() { 
				
				public void onClick(DialogInterface dialog, int which){
					
				}
			});
			alert.show();
	}
}